package io.renren.modules.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.generator.dao.TermDao;
import io.renren.modules.generator.entity.TermEntity;
import io.renren.modules.generator.service.TermService;



@Service("termService")
public class TermServiceImpl extends BaseServiceImpl implements TermService {

	
	@Override
	public TermEntity queryObject(Integer code){
		return termDao.queryObject(code);
	}
	
	@Override
	public List<TermEntity> queryList(Map<String, Object> map){
		return termDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return termDao.queryTotal(map);
	}
	
	@Override
	public void save(TermEntity term){
		termDao.save(term);
	}
	
	@Override
	public void update(TermEntity term){
		termDao.update(term);
	}
	
	@Override
	public void delete(Integer code){
		termDao.delete(code);
	}
	
	@Override
	public void deleteBatch(Integer[] codes){
		termDao.deleteBatch(codes);
	}

	@Override
	public List<TermEntity> findAllTerm() {
		return termDao.findAllTerm();
	}
	
}
